package com.lh.entity.table;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName("area_info")
public class AreaInfo {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("area_code")
    private String areaCode;

    @TableField("area_name")
    private String areaName;

    @TableField("parent_code")
    private String parentCode;

    @TableField("parent_name")
    private String parentName;

    @TableField(exist = false)
    private List<AreaInfo> children;
}
